/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 

package com.sui.bigdata.flink.sql.core.util;


/**
 * Date: 2019/07/10
 * @author yong_chen@sui.com
 */
public class ConfigConstrant {

    public static final String FLINK_MINI_BATCH_ALLOS_LATENCY = "mini.batch.allow.latency";

    public static final String FLINK_MINI_BATCH_SIZE = "mini.batch.size";

    public static final String FLINK_DISTINCT_AGG_SPLIT_BUCKET_NUM = "distinct.agg.split.bucket.num";

    public static final String FLINK_SELECT_SINK = "sql.select.sink";

    public static final String FLINK_SELECT_KAFKA_BOOTSTRAP = "sql.select.kafka.bootstrap";

    public static final String FLINK_SELECT_KAFKA_TOPIC = "sql.select.kafka.topic";

    public static final String FLINK_CHECKPOINT_INTERVAL_KEY = "sql.checkpoint.interval";

    public static final String FLINK_CHECKPOINT_MODE_KEY = "sql.checkpoint.mode";

    public static final String FLINK_CHECKPOINT_TIMEOUT_KEY = "sql.checkpoint.timeout";

    public static final String FLINK_MAXCONCURRENTCHECKPOINTS_KEY = "sql.max.concurrent.checkpoints";

    public static final String FLINK_CHECKPOINT_CLEANUPMODE_KEY = "sql.checkpoint.cleanup.mode";

    public static final String FLINK_RESTART_SAVEPOINT_PATH = "sql.restart.savepoints.dir";

    public static final String PARALLELISM = "parallelism";

    public static final String SQL_MAX_ENV_PARALLELISM = "sql.max.env.parallelism";

    public static final String SQL_BUFFER_TIMEOUT_MILLIS = "sql.buffer.timeout.millis";

    public static final String FLINK_TIME_CHARACTERISTIC_KEY = "time.characteristic";

    public static final String SQL_TTL_MINTIME = "sql.ttl.min";

    public static final String SQL_TTL_MAXTIME = "sql.ttl.max";

    public static final String STATE_BACKEND_KEY = "state.backend";
    public static final String CHECKPOINTS_DIRECTORY_KEY = "state.checkpoints.dir";
    public static final String STATE_BACKEND_INCREMENTAL_KEY = "state.backend.incremental";

    public static final String KAFKA_ACKS = "all";

    public static final String KAFKA_RETRIES = "0";

    public static final String KAFKA_BATCH_SIZE = "16384";

    public static final String KAFKA_LINGER_MS = "1";

    public static final String KAFKA_BUFFER_MEMORY = "33554432";

    public static final String MAX_FAILURES_RESTART_PER_INTERVAL="max.failures.restart.per.interval";

    public static final String FAILURES_RESTART_RATE_INTERVAL="failures.restart.rate.interval";

    public static final String FAILURES_RESTART_DELAY="failures.restart.delay";

}
